---
layout: "default"
title: "overlaps"
description: "Swift documentation for 'overlaps': Returns true if lhs and rhs have a non-empty intersection."
keywords: "overlaps,func,swift,documentation"
root: "/v1.2"
---

<div class="declaration" id="func-overlaps-i0_-intervaltype-i1_-intervaltype-where-i0-bound-i0-bound_-i0-rhs_-i1">
<a class="toggle-link" data-toggle="collapse" href="#comment-func-overlaps-i0_-intervaltype-i1_-intervaltype-where-i0-bound-i0-bound_-i0-rhs_-i1">func <wbr>overlaps&lt;I0 :<wbr> IntervalType, I1 : IntervalType where I0.Bound == I0.Bound&gt;(<wbr>_:<wbr> I0, rhs: I1)</a>
        
<div class="comment collapse" id="comment-func-overlaps-i0_-intervaltype-i1_-intervaltype-where-i0-bound-i0-bound_-i0-rhs_-i1"><div class="p">
    <p>Returns <code>true</code> if <code>lhs</code> and <code>rhs</code> have a non-empty intersection</p>

    <h4>Declaration</h4>    
    <code class="language-swift">func overlaps&lt;I0 : IntervalType, I1 : IntervalType where I0.Bound == I0.Bound&gt;(lhs: I0, rhs: I1) -&gt; Bool</code>
    
    
</div></div>
</div>
